import request from '@/utils/request'

// 查询库存变更记录列表
export function listInventorychange(query) {
  return request({
    url: '/system/inventorychange/list',
    method: 'get',
    params: query
  })
}

// 查询库存变更记录详细
export function getInventorychange(id) {
  return request({
    url: '/system/inventorychange/' + id,
    method: 'get'
  })
}

// 新增库存变更记录
export function addInventorychange(data) {
  return request({
    url: '/system/inventorychange',
    method: 'post',
    data: data
  })
}

// 修改库存变更记录
export function updateInventorychange(data) {
  return request({
    url: '/system/inventorychange',
    method: 'put',
    data: data
  })
}

// 删除库存变更记录
export function delInventorychange(id) {
  return request({
    url: '/system/inventorychange/' + id,
    method: 'delete'
  })
}
